
def hidden_prompt(prompt='\n Please enter a password: '):
	"""
	This prompts for a PASSWORD returns the input
	This can be used for anything where the input needs to be hidden
	"""
	from getpass import getpass
	return getpass(prompt)

def _get_blowfish():
	"""returns the {{ module }} blowfish cipher"""
	from {{ module.lower() }}.blowfish import Blowfish

	#init cipher
	return Blowfish('{{ cipher }}')

def encode(passphrase):
	"""encrypts a pass phrase"""
	cipher = _get_blowfish()
	cipher.initCTR()

	return  cipher.encryptCTR(passphrase)

def decode(crypted_message):
	"""decrypts an encrypted passphrase using the {{ module }} blowfish key"""
	cipher = _get_blowfish()
	cipher.initCTR()
	return cipher.decryptCTR(crypted_message)

